<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>商品渲染</title>
</head>

<body>
  <script>
    // 以下代码是否有问题，如果有，如何修改
    const arr = [1,2,3,4,5]

    const res = arr.forEach(item,index, arr) {
      console.log(item);
    }
  </script>
</body>

</html>